-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYear 60 - Understaffed Sorting
163 lines (162 loc) · 1.6 KB
/
Year 60 - Understaffed Sorting
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
-- 7 Billion Humans (2214M) --
-- 60: Understaffed Sorting by @commonnickname --
jump a
mem1 = foreachdir e:
a:
if mem1 == worker:
step w
else:
step e
endif
jump b
endfor
c:
d:
e:
step nw
step nw
f:
jump g
mem1 = foreachdir w:
g:
if mem1 != wall:
step w
step w
jump f
endif
endfor
step s
step e
step se
b:
h:
i:
j:
k:
l:
m:
n:
jump o
mem1 = foreachdir e:
mem4 = foreachdir se:
mem3 = foreachdir s:
mem2 = foreachdir sw:
o:
if mem1 == worker or
mem1 == datacube:
jump n
endif
jump p
endfor
endfor
endfor
endfor
p:
if mem2 != datacube and
mem2 != wall or
mem3 != datacube:
jump c
endif
if mem4 == wall:
if mem2 > mem3:
pickup sw
drop
step sw
pickup e
drop
step e
pickup n
drop
step nw
endif
jump d
endif
if mem4 != datacube and
mem4 != wall:
jump e
endif
if mem2 <= mem3 and
mem3 <= mem4:
step e
step e
jump m
endif
if mem2 <= mem4 and
mem4 < mem3:
pickup s
drop
step s
pickup e
drop
pickup n
step e
drop
step ne
jump l
endif
if mem3 < mem2 and
mem2 <= mem4:
pickup sw
drop
step sw
pickup e
drop
step e
pickup n
drop
step ne
step e
jump k
endif
if mem4 < mem3 and
mem3 <= mem2:
jump q
endif
if mem4 <= mem3 and
mem3 < mem2:
q:
pickup sw
drop
pickup se
step sw
drop
step e
step e
pickup nw
drop
step ne
jump j
endif
if mem3 < mem4 and
mem4 < mem2:
pickup sw
drop
step sw
pickup e
drop
step e
pickup e
drop
step e
pickup nw
drop
step ne
jump i
endif
if mem4 < mem2 and
mem2 < mem3:
pickup s
drop
step s
pickup w
drop
pickup e
step w
drop
step e
step e
pickup nw
drop
step ne
jump h
endif